const axios = require('axios');
const config = require('../config');
const path = '/api/game_statistics/game_type';
module.exports = async (params) => {
  try {
    const res = await axios.get(config.server + path, { params });
    if (res.status === 200) {
      return res.data
    }
  } catch (e) {
    return Promise.reject(e)
  }
}